// samsting : this file is auto create.

#include "Ram/2015-05-01/ListPolicyVersionsResponse.h"

namespace aliyun { namespace Ram {

ListPolicyVersionsResponse::ListPolicyVersionsResponse() {
}

const string& ListPolicyVersionsResponse::PolicyVersion::GetVersionId(void) const {
  return VersionId_;
}

bool ListPolicyVersionsResponse::PolicyVersion::GetIsDefaultVersion(void) const {
  return IsDefaultVersion_;
}

const string& ListPolicyVersionsResponse::PolicyVersion::GetPolicyDocument(void) const {
  return PolicyDocument_;
}

const string& ListPolicyVersionsResponse::PolicyVersion::GetCreateDate(void) const {
  return CreateDate_;
}

const std::vector<ListPolicyVersionsResponse::PolicyVersion>& ListPolicyVersionsResponse::GetPolicyVersions(void) const {
  return PolicyVersions_;
}

const char* ListPolicyVersionsResponse::BaseKey(void) {
  return "ListPolicyVersionsResponse";
}

void ListPolicyVersionsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int PolicyVersions__length = 0;
  UnmarshallerInt(PolicyVersions__length, response_map, "ListPolicyVersionsResponse.PolicyVersions.Length");
  if(PolicyVersions__length >= 0) {
    PolicyVersions_.resize(PolicyVersions__length);
    for(int i1 = 0; i1 < PolicyVersions__length; i1++) {
      UnmarshallerString(PolicyVersions_[i1].VersionId_, response_map, "ListPolicyVersionsResponse.PolicyVersions["+string_ValueOfInt(i1)+"].VersionId");
      UnmarshallerBool(PolicyVersions_[i1].IsDefaultVersion_, response_map, "ListPolicyVersionsResponse.PolicyVersions["+string_ValueOfInt(i1)+"].IsDefaultVersion");
      UnmarshallerString(PolicyVersions_[i1].PolicyDocument_, response_map, "ListPolicyVersionsResponse.PolicyVersions["+string_ValueOfInt(i1)+"].PolicyDocument");
      UnmarshallerString(PolicyVersions_[i1].CreateDate_, response_map, "ListPolicyVersionsResponse.PolicyVersions["+string_ValueOfInt(i1)+"].CreateDate");
    } // for(int i1 = 0; i1 < PolicyVersions__length; i1++) {
  } // if(PolicyVersions__length >= 0) {

}


} } // namespace aliyun { namespace Ram {

// end of file 
